home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / awt / Component$AccessibleAWTComponent.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  5.0 KB  |  229 lines

  1. package java.awt;
  2.  
  3. import java.awt.event.ComponentListener;
  4. import java.awt.event.FocusListener;
  5. import java.beans.PropertyChangeListener;
  6. import java.io.Serializable;
  7. import java.util.Locale;
  8. import javax.accessibility.Accessible;
  9. import javax.accessibility.AccessibleComponent;
  10. import javax.accessibility.AccessibleContext;
  11. import javax.accessibility.AccessibleRole;
  12. import javax.accessibility.AccessibleState;
  13. import javax.accessibility.AccessibleStateSet;
  14.  
  15. public abstract class Component$AccessibleAWTComponent extends AccessibleContext implements Serializable, AccessibleComponent {
  16.    private static final long serialVersionUID = 642321655757800191L;
  17.    protected ComponentListener accessibleAWTComponentHandler;
  18.    protected FocusListener accessibleAWTFocusHandler;
  19.    // $FF: synthetic field
  20.    final Component this$0;
  21.  
  22.    protected Component$AccessibleAWTComponent(Component var1) {
  23.       this.this$0 = var1;
  24.       this.accessibleAWTComponentHandler = null;
  25.       this.accessibleAWTFocusHandler = null;
  26.    }
  27.  
  28.    public void addPropertyChangeListener(PropertyChangeListener var1) {
  29.       if (this.accessibleAWTComponentHandler == null) {
  30.          this.accessibleAWTComponentHandler = new Component.AccessibleAWTComponent.AccessibleAWTComponentHandler(this);
  31.          this.this$0.addComponentListener(this.accessibleAWTComponentHandler);
  32.       }
  33.  
  34.       if (this.accessibleAWTFocusHandler == null) {
  35.          this.accessibleAWTFocusHandler = new Component.AccessibleAWTComponent.AccessibleAWTFocusHandler(this);
  36.          this.this$0.addFocusListener(this.accessibleAWTFocusHandler);
  37.       }
  38.  
  39.       super.addPropertyChangeListener(var1);
  40.    }
  41.  
  42.    public void removePropertyChangeListener(PropertyChangeListener var1) {
  43.       if (this.accessibleAWTComponentHandler != null) {
  44.          this.this$0.removeComponentListener(this.accessibleAWTComponentHandler);
  45.          this.accessibleAWTComponentHandler = null;
  46.       }
  47.  
  48.       if (this.accessibleAWTFocusHandler != null) {
  49.          this.this$0.removeFocusListener(this.accessibleAWTFocusHandler);
  50.          this.accessibleAWTFocusHandler = null;
  51.       }
  52.  
  53.       super.removePropertyChangeListener(var1);
  54.    }
  55.  
  56.    public String getAccessibleName() {
  57.       return this.accessibleName;
  58.    }
  59.  
  60.    public String getAccessibleDescription() {
  61.       return this.accessibleDescription;
  62.    }
  63.  
  64.    public AccessibleRole getAccessibleRole() {
  65.       return AccessibleRole.AWT_COMPONENT;
  66.    }
  67.  
  68.    public AccessibleStateSet getAccessibleStateSet() {
  69.       return this.this$0.getAccessibleStateSet();
  70.    }
  71.  
  72.    public Accessible getAccessibleParent() {
  73.       if (this.accessibleParent != null) {
  74.          return this.accessibleParent;
  75.       } else {
  76.          Container var1 = this.this$0.getParent();
  77.          return var1 instanceof Accessible ? (Accessible)var1 : null;
  78.       }
  79.    }
  80.  
  81.    public int getAccessibleIndexInParent() {
  82.       return this.this$0.getAccessibleIndexInParent();
  83.    }
  84.  
  85.    public int getAccessibleChildrenCount() {
  86.       return 0;
  87.    }
  88.  
  89.    public Accessible getAccessibleChild(int var1) {
  90.       return null;
  91.    }
  92.  
  93.    public Locale getLocale() {
  94.       return this.this$0.getLocale();
  95.    }
  96.  
  97.    public AccessibleComponent getAccessibleComponent() {
  98.       return this;
  99.    }
  100.  
  101.    public Color getBackground() {
  102.       return this.this$0.getBackground();
  103.    }
  104.  
  105.    public void setBackground(Color var1) {
  106.       this.this$0.setBackground(var1);
  107.    }
  108.  
  109.    public Color getForeground() {
  110.       return this.this$0.getForeground();
  111.    }
  112.  
  113.    public void setForeground(Color var1) {
  114.       this.this$0.setForeground(var1);
  115.    }
  116.  
  117.    public Cursor getCursor() {
  118.       return this.this$0.getCursor();
  119.    }
  120.  
  121.    public void setCursor(Cursor var1) {
  122.       this.this$0.setCursor(var1);
  123.    }
  124.  
  125.    public Font getFont() {
  126.       return this.this$0.getFont();
  127.    }
  128.  
  129.    public void setFont(Font var1) {
  130.       this.this$0.setFont(var1);
  131.    }
  132.  
  133.    public FontMetrics getFontMetrics(Font var1) {
  134.       return var1 == null ? null : this.this$0.getFontMetrics(var1);
  135.    }
  136.  
  137.    public boolean isEnabled() {
  138.       return this.this$0.isEnabled();
  139.    }
  140.  
  141.    public void setEnabled(boolean var1) {
  142.       boolean var2 = this.this$0.isEnabled();
  143.       this.this$0.setEnabled(var1);
  144.       if (var1 != var2 && this.this$0.accessibleContext != null) {
  145.          if (var1) {
  146.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.ENABLED);
  147.          } else {
  148.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", AccessibleState.ENABLED, (Object)null);
  149.          }
  150.       }
  151.  
  152.    }
  153.  
  154.    public boolean isVisible() {
  155.       return this.this$0.isVisible();
  156.    }
  157.  
  158.    public void setVisible(boolean var1) {
  159.       boolean var2 = this.this$0.isVisible();
  160.       this.this$0.setVisible(var1);
  161.       if (var1 != var2 && this.this$0.accessibleContext != null) {
  162.          if (var1) {
  163.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.VISIBLE);
  164.          } else {
  165.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", AccessibleState.VISIBLE, (Object)null);
  166.          }
  167.       }
  168.  
  169.    }
  170.  
  171.    public boolean isShowing() {
  172.       return this.this$0.isShowing();
  173.    }
  174.  
  175.    public boolean contains(Point var1) {
  176.       return this.this$0.contains(var1);
  177.    }
  178.  
  179.    public Point getLocationOnScreen() {
  180.       synchronized(this.this$0.getTreeLock()) {
  181.          return this.this$0.isShowing() ? this.this$0.getLocationOnScreen() : null;
  182.       }
  183.    }
  184.  
  185.    public Point getLocation() {
  186.       return this.this$0.getLocation();
  187.    }
  188.  
  189.    public void setLocation(Point var1) {
  190.       this.this$0.setLocation(var1);
  191.    }
  192.  
  193.    public Rectangle getBounds() {
  194.       return this.this$0.getBounds();
  195.    }
  196.  
  197.    public void setBounds(Rectangle var1) {
  198.       this.this$0.setBounds(var1);
  199.    }
  200.  
  201.    public Dimension getSize() {
  202.       return this.this$0.getSize();
  203.    }
  204.  
  205.    public void setSize(Dimension var1) {
  206.       this.this$0.setSize(var1);
  207.    }
  208.  
  209.    public Accessible getAccessibleAt(Point var1) {
  210.       return null;
  211.    }
  212.  
  213.    public boolean isFocusTraversable() {
  214.       return this.this$0.isFocusTraversable();
  215.    }
  216.  
  217.    public void requestFocus() {
  218.       this.this$0.requestFocus();
  219.    }
  220.  
  221.    public void addFocusListener(FocusListener var1) {
  222.       this.this$0.addFocusListener(var1);
  223.    }
  224.  
  225.    public void removeFocusListener(FocusListener var1) {
  226.       this.this$0.removeFocusListener(var1);
  227.    }
  228. }
  229.